<div class="groups view">
    <h2><?php __('Group'); ?></h2>
    <dl><?php $i = 0;
$class = ' class="altrow"'; ?>
        <dt<?php if ($i % 2 == 0)
    echo $class; ?>><?php __('Id'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
<?php echo $group['Group']['id']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
    echo $class; ?>><?php __('Name'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
    echo $class; ?>>
            <?php echo $group['Group']['name']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
                echo $class; ?>><?php __('Security Level'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
                echo $class; ?>>
<?php echo $group['Group']['security_level']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
    echo $class; ?>><?php __('Created'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
    echo $class; ?>>
<?php echo $group['Group']['created']; ?>
            &nbsp;
        </dd>
        <dt<?php if ($i % 2 == 0)
    echo $class; ?>><?php __('Modified'); ?></dt>
        <dd<?php if ($i++ % 2 == 0)
    echo $class; ?>>
<?php echo $group['Group']['modified']; ?>
            &nbsp;
        </dd>
    </dl>

    <div class="related">
        <h3><?php __('Related Users'); ?></h3>
            <?php if (!empty($group['User'])): ?>
            <table cellpadding = "0" cellspacing = "0">
                <tr>
                    <th><?php __('Id'); ?></th>
                    <th><?php __('Name'); ?></th>
                    <th><?php __('Group Id'); ?></th>
                    <th class="actions"><?php __('Actions'); ?></th>
                </tr>
    <?php
    $i = 0;
    foreach ($group['User'] as $user):
        $class = null;
        if ($i++ % 2 == 0) {
            $class = ' class="altrow"';
        }
        ?>
                    <tr<?php echo $class; ?>>
                        <td><?php echo $user['id']; ?></td>
                        <td><?php echo $user['name']; ?></td>
                        <td><?php echo $user['group_id']; ?></td>
                        <td class="actions">
        <?php echo $this->Html->link(__('View', true), array('controller' => 'users', 'action' => 'view', $user['id'])); ?>
        <?php echo $this->Html->link(__('Edit', true), array('controller' => 'users', 'action' => 'edit', $user['id'])); ?>
        <?php echo $this->Html->link(__('Delete', true), array('controller' => 'users', 'action' => 'delete', $user['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['id'])); ?>
                        </td>
                    </tr>
    <?php endforeach; ?>
            </table>
<?php endif; ?>

    </div>
</div>
